﻿cmake_minimum_required(VERSION 3.10)
set(APP test_re)
set(APP2 test_df)
project(${APP})

option(BUILD_test_re "Build test_re" ON)
option(BUILD_test_df "Build test_df" ON)

if(BUILD_test_re)
    add_executable(${APP} test_re.cpp)
    target_include_directories(${APP}
            PRIVATE
            ${RE2_INCLUDE_DIR}
            ${ABSL_INCLUDE_DIR}
            ${EXTRA_INCLUDE_DIRS}
    )

    target_link_libraries(${APP}
            PRIVATE
            ${RE2_LIB_DIR}/libre2.dylib
            ${ABSL_LIB_DIR}/libabsl_base.dylib
            ${ABSL_LIB_DIR}/libabsl_log_severity.dylib
            ${ABSL_LIB_DIR}/libabsl_synchronization.dylib
    )
endif()

if(BUILD_test_df)
    add_executable(${APP2} test_dataframe.cpp)
    target_include_directories(${APP2}
            PRIVATE
            ${RE2_INCLUDE_DIR}
            ${ABSL_INCLUDE_DIR}
            ${PROJECT_SOURCE_DIR}/../UDataFrame
            ${EXTRA_INCLUDE_DIRS}
    )

    target_link_libraries(${APP2}
            PRIVATE
            uframe_static
            ${RE2_LIB_DIR}/libre2.dylib
            ${ABSL_LIB_DIR}/libabsl_base.dylib
            ${ABSL_LIB_DIR}/libabsl_log_severity.dylib
            ${ABSL_LIB_DIR}/libabsl_synchronization.dylib
    )
endif()




